<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm">

									<input type="hidden" name="formToken" th:value="${session.formToken}" />
								
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="text-input">所属应用</label>
										<div class="col-md-9">
											<input class="form-control" id="text-input" type="text" onclick="showApplication()" name="applicationIdLabel" readonly="readonly" style="cursor: pointer" placeholder="所属应用">
											<input type="hidden" name="applicationId"  th:value="${bean.applicationId}"  />
										</div>
									</div>
										
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="text-input">标题</label>
										<div class="col-md-9">
											<input class="form-control" id="text-input" th:value="${bean.postTitle}" type="text" name="postTitle" placeholder="应用名称">
										</div>
									</div>
									
									<!-- 
									<div class="form-group row margin-right-0">
										<label class="col-md-2 col-form-label control-label" for="text-input">上级类型</label>
										<div class="col-md-9">
											<input class="form-control" id="text-input" 
												   type="text" style="cursor:pointer" 
												   readonly="readonly" onclick="showResourceParent()" 
												   name="postMimeTypeLabel" placeholder="上级类型">
											<input type="hidden" name="postMimeType"  />
										</div>
									</div>
									-->
									
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">文章类型</label>
										<div class="col-md-9">
											<select class="form-control" id="postMimeType" name="postMimeType">
												<option th:each="item:${codeTypes}" th:value="${item.id}" th:text="${item.typeName}" selected></option>
											</select>
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">内容</label>
										<div class="col-md-9">
											<textarea class="form-control" id="postContent" th:text="${bean.postContent}" name="postContent" rows="8" placeholder="内容"></textarea>
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">是否发布</label>
										<div class="col-md-9">
											<select class="form-control" id="hasStatus" name="hasStatus">
												<option value="1" selected>启用</option>
												<option value="2">禁用</option>
											</select>
										</div>
									</div>
								</form>

							</div>

							<!-- 
							<div class="card-footer">
								<button class="btn btn-primary" style="float: right"
									onclick="save()" type="button">保存</button>
							</div>
							-->

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>
	
</body>
</html>
